﻿using System;

namespace YArchitech.MEP.Electric.Common
{
	public class StringUtility
	{
		public static string ReplaceChar(string exportValue)
		{
			string text = "";
			foreach (string str in exportValue.Split(new char[]
			{
				'.'
			}))
			{
				text = text + str + "-";
			}
			return text.Substring(0, text.LastIndexOf('-'));
		}

		public static string RemoveSpace(string str)
		{
			string text = "";
			for (int i = 0; i < str.Length; i++)
			{
				if (!char.IsWhiteSpace(str[i]))
				{
					text += str[i].ToString();
				}
			}
			return text;
		}
	}
}
